

import 'package:furaha_mkopo/net/fm_http_model.dart';

class FMPersonalModel extends FMHttpModel {
  List<FMPersonalIncidentsModel>? incidents;

  FMPersonalModel({
    this.incidents
  });

  @override
  FMPersonalModel fromJson(Map<String, dynamic> json) {
    if (json['incidents'] != null) {
      incidents = List<FMPersonalIncidentsModel>.from(
          json['incidents'].map((e) => FMPersonalIncidentsModel.fromJson(e)));
    }
    return this;
  }
}

class FMPersonalIncidentsModel {

  int? useless;
  String? soul;
  String? perilous;
  String? cheers;
  String? sent;
  String? invent;
  int? dreaming;
  List<FMPersonalRetiredModel>? retired;

  FMPersonalIncidentsModel({
    this.useless,
    this.soul,
    this.perilous,
    this.cheers,
    this.sent,
    this.invent,
    this.dreaming,
    this.retired,
  });

  FMPersonalIncidentsModel.fromJson(Map<String, dynamic> json) {
    useless = json["useless"];
    soul = json["soul"];
    perilous = json["perilous"];
    cheers = json["cheers"];
    sent = json["sent"];
    invent = json["invent"];
    dreaming = json["dreaming"];
    retired = List<FMPersonalRetiredModel>.from(
        json['retired'].map((e) => FMPersonalRetiredModel.fromJson(e)));
  }
}

class FMPersonalRetiredModel {
  String? planned;
  int? firm;

  FMPersonalRetiredModel({
    this.planned,
    this.firm
  });

  FMPersonalRetiredModel.fromJson(Map<String, dynamic> json) {
    planned = json["planned"];
    firm = json["firm"];
  }

}
